// Primary Button
.th-btn {
    position: relative;
    z-index: 2;
    overflow: hidden;
    vertical-align: middle;
    display: inline-block;
    border: none;
    text-transform: uppercase;
    text-align: center;
    color: $title-color;
    background: linear-gradient(180deg, $theme-color 37.5%, #DDFFF1 100%);
    box-shadow: 0px 3px 15px rgba(174, 211, 195, 0.7);
    font-family: $body-font;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 21px 30px;
    min-width: 170px;
    border-radius: 30px;
    &:before {
        content: "";
        position: absolute;
        height: 56%;
        top: 1px;
        left: 10px;
        width: calc(100% - 20px);
        background: linear-gradient(180deg, #A9FFDA 0%, rgba(169, 255, 218, 0) 78.65%);
        filter: blur(2px);
        z-index: -1;
        transition: all 0.4s ease-out;
        border-radius: inherit;
    }
    i {
        font-size: 0.95em;
    }
    &:hover{
        transform: translateY(-3px);
    }

    &.style2 {
        background: linear-gradient(180deg, #C2D4FF 37.5%, #F0F4FF 100%);
        box-shadow: 0px 2px 10px rgba(184, 191, 208, 0.5);
        &:before {
            background: linear-gradient(180deg, #F9FAFD 0%, rgba(249, 250, 253, 0) 78.65%);
        }
    }
    &.style3 {
        &:hover {
            box-shadow: 0px 3px 12px rgba($color: #21325d, $alpha: 0.5);
        }
    }
    &.style4 {
        background-color: $theme-color2;
        background: linear-gradient(180deg, $theme-color2 37.5%, #E3EBFF 100%);
        box-shadow: 0px 3px 15px #B0BAD3;
        color: $white-color;
        &:before {
            background: linear-gradient(180deg, #A3BDFF 0%, rgba(155, 184, 255, 0) 78.65%);
        }
    }
    &.style5 {
        background-color: $theme-color;
        color: $white-color;
        &:hover {
            color: $theme-color;
            &:before,
            &:after {
                background-color: $white-color;
            }
        }
    } 
    &.style6 {
        background-color: $title-color;
        &:hover {
            background-color: $theme-color;
            &:before,
            &:after {
                background-color: $theme-color;
            }
        }
    }
    &.shadow-1 {
        box-shadow: 0px 3px 12px rgba($color: #21325d, $alpha: 0.5);
    } 
    &.btn-fw {
        width: 100%;
        box-shadow: 0px 3px 15px rgba(174, 211, 195, 0.7);
    }
    &.style-smoke {
        background: $smoke-color;
        color: $theme-color2;
        padding: 11px 18px;
        box-shadow: none;
        &:before {
            display: none;
        }
        &:hover {
            background-color: $theme-color2;
            color: $white-color;
        }
    }
    &.btn-sm {
        padding: 16px 25px;
        min-width: 140px;
    }
}

// Icon Btn
.icon-btn {
    display: inline-block;
    width: var(--btn-size, 56px);
    height: var(--btn-size, 56px);
    line-height: var(--btn-size, 54px);
    font-size: var(--btn-font-size, 20px);
    background-color: var(--icon-bg, #fff);
    color: $title-color;
    text-align: center;
    border-radius: 0;
    border: 1px solid $border-color;
    transition: 0.4s ease-in-out;
    position: relative;

    &:hover {
        background-color: $theme-color;
        color: $white-color;
        border-color: $theme-color;
    }
    &.style2 {
        background-color: $theme-color;
        color: $white-color;
        border: none;
        border-radius: 99px;
        line-height: var(--btn-size, 56px);
        &:hover {
            background-color: $theme-color2;
        }
    }
}

// Play Button
.play-btn {
    display: inline-block;
    position: relative;
    z-index: 1;

    > i {
        display: inline-block;
        width: var(--icon-size, 56px);
        height: var(--icon-size, 56px);
        line-height: var(--icon-size, 56px);
        text-align: center;
        background-color: $white-color;
        color: $theme-color;
        font-size: var(--icon-font-size, 1.4em);
        border-radius: 50%;
        z-index: 1;
        transition: all ease 0.4s;
    }

    &:after,
    &:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: $white-color;
        @extend .ripple-animation;
        z-index: -1;
        border-radius: 50%;
        transition: all ease 0.4s;
    }

    &:after {
        animation-delay: 2s;
    }

    &:hover {
        &:after,
        &::before,
        i {
            background-color: $theme-color;
            color: $white-color;
        }
    }
    &.style2 {
        &:before,
        &:after {
            background-color: transparent;
            border: 1px solid $white-color;
        }
    }
    &.style3 {
        > i {
            --icon-size: 40px;
            font-size: 14px;
            border: 1px solid;
            background-color: $theme-color;
            color: $white-color;
        }
        &:before,
        &:after {
            background-color: $white-color;
        }
        &:hover {
            > i {
                background-color: $white-color;
                color: $theme-color;
            }
            &:before,
            &:after {
                background-color: $white-color;
            }
        }
    }
}

// Link Button
.link-btn {
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    line-height: 0.8;
    position: relative;
    padding-bottom: 2px;
    margin-bottom: -2px;
    text-transform: uppercase;
    color: $theme-color;

    i {
        margin-left: 5px;
        font-size: 0.9rem;
    }

    &:before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background-color: $theme-color;
        transition: all ease 0.4s;
    }

    &:hover {
        color: $theme-color;

        &::before {
            width: 100%;
        }
    }
}

.line-btn {
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    line-height: 0.8;
    position: relative;
    padding-bottom: 4px;
    margin-bottom: -1px;
    text-transform: uppercase;
    color: $theme-color;

    i {
        margin-left: 5px;
        font-size: 0.9rem;
    }

    &:before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background-color: $theme-color;
        transition: all ease 0.4s;
    }

    &:hover {
        color: $theme-color;
        &::before {
            background-color: $theme-color;
            width: 45px;
        }
    }
}

// Scroll To Top
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    z-index: 10000;
    opacity: 1;
    visibility: hidden;
    transform: translateY(45px);
    transition: all 300ms linear;
    &:after {
        content: "\f062";
        font-family: $icon-font;
        position: absolute;
        text-align: center;
        line-height: 50px;
        font-size: 20px;
        color: $theme-color;
        left: 0;
        top: 0;
        height: 50px;
        width: 50px;
        cursor: pointer;
        display: block;
        z-index: 1;
        border: 2px solid $theme-color;
        box-shadow: none;
        border-radius: 50%;
    }
    svg {
        color: $theme-color;
        border-radius: 50%;
        background: $white-color;
        path {
            fill: none;
        }
    }
    .progress-circle path {
        stroke: $theme-color;
        stroke-width: 20px;
        box-sizing: border-box;
        transition: all 400ms linear;
    }
    &.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}